//
//  LBHNeonFilter.mm
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 23/08/2013.
//  Copyright (c) 2013 UIT. All rights reserved.
//

#include "LBHNeonFilter.h"
#include "LBWhiteBalanceFilter.h"
#include "LBBrightnessFilter.h"
#include "LBContrastFilter.h"
#include "LBUtils.h"
#include "LBToneCurveFilter.h"
#include "LBSharpenFilter.h"

LBHNeonFilter::LBHNeonFilter(){
    
    toneCurve = new LBToneCurveFilter();
    
    sharpen = new LBSharpenFilter();
    sharpen->setSharpness(0.05);
    
    toneCurve->addTarget(sharpen);
    firstFilter = toneCurve;
}

LBHNeonFilter::~LBHNeonFilter(){
    outputTexture = 0;
    DELETE_SAFELY(toneCurve);
}

void LBHNeonFilter::setToneAcvData(unsigned char* toneData){
    toneCurve->setCurveImageData(toneData);
}